package rs.ac.mbs2.entiteti;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;

@Embeddable
public class Kategoija implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	//private int id;
	@Column(name = "naziv", columnDefinition = "ENUM('A', 'B', 'C', 'D', 'E')", nullable = false)
	private String naziv;
	/*public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}*/
	public String getNaziv() {
		return naziv;
	}
	public void setNaziv(String naziv) {
		this.naziv = naziv;
	}
	public Kategoija(String naziv) {
		super();
		//this.id = id;
		this.naziv = naziv;
	}
	@Override
	public String toString() {
		return "Kategoija [id= //" + ", naziv=" + naziv + "]";
	}
}
